\documentclass[a4paper]{article}


% tilføjet af Stubman 231010
\usepackage[footnote,draft,danish,silent,nomargin]{fixme}		% Indst rettelser og lignende med \fixme{...} Med final i stedet for draft, udlses en error 																															for hver fixme, der ikke er slettet, nr rapporten bygges.

%%%%%%%%%% Various Packages %%%%%%%%%
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[numbers]{natbib}
\usepackage{verbatim}%% For Comment enviroment
%\usepackage{listings}

\usepackage{lastpage}% gives lastpage commando
\usepackage{algorithm}%%% Algorithm Eviroment
\usepackage{algorithmic}%%% Algorithm Eviroment
\usepackage{amsmath, amsfonts, amssymb, amsthm,mathtools} % Math Paths
\usepackage{bm}
\usepackage{fancyhdr} % For headers
\usepackage[perpage,para]{footmisc}
\usepackage{etoolbox}
%\usepackage{sadlist} % Selfdefined package. Gives \begin{sadlist}{title}{description}{label}
%\usepackage{casecontrol}%
%\usepackage{packages/maplestd2e}%
%\usepackage{xifthen}% provides \isempty test and ifthen else 
\usepackage[absolute]{textpos} %used on the frontpage for the picture.
\usepackage{tabularx}
%\usepackage[retainorgcmds]{IEEEtrantools}
%\usepackage{qtree}
%\usepackage{stmaryrd}
%\usepackage{morefloats}
%\usepackage{placeins} % Gives the \FloatBarrier command
%\usepackage{pdfpages}
%\usepackage{rotating}

%%%%%%%%%%%% Words %%%%%%%%%%%%%%
\newcommand{\elearning}[1][]{\caseControl{e}{-learning}{#1}{}}%



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%% Protect against orhpans and widows %%%%%%%%%
\widowpenalty=300
\clubpenalty=300
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



%%%%%% Depracted  %%%%%%%%
%\usepackage{en-bib}  % anyone who knows this?
%\usepackage{en-bib}  % anyone who knows this?
%%%%%%%%%%%%%%%%%%%%


%%%%%%%%% Make links work %%%%%%%%%%
\usepackage[pdfborder={0 0 0 0}, backref=none]{hyperref}
%\usepackage[a4paper, bookmarks=true, bookmarksopen=true, bookmarksnumbered=true, pdfborder={0 0 0 0}, colorlinks=true, breaklinks=true, backref=section]{hyperref}
\hypersetup{
pdfborder=0 0 0
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%% something? useful? hopefully!
%\usepackage[]{graphicx} %dvips
\usepackage{emp}
%\ifx\pdftexversion\undefined
%\usepackage[dvips]{graphicx}
%\else
%\usepackage[pdftex]{graphicx}
%\DeclareGraphicsRule{*}{mps}{*}{}
%\fi
\usepackage[]{subfig}% Need to make several pictures in one float
\usepackage{wrapfig}% Enables us to wrap text around a figure
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%% Prettier chapters %%%%%
%\usepackage[Lenny]{fncychap}%
%\usepackage[Sonny]{fncychap}%
%\usepackage[Glenn]{fncychap}%
%\usepackage[Bjarne]{fncychap}%
%\usepackage[Bjornstrup]{fncychap}%
%\usepackage[Conny]{fncychap}%
%\usepackage[Rejne]{fncychap}%
\usepackage{xparse}%
%%%%%%%%%%%%%%%%%%%%



%\setcitestyle{numbers}

%%%% Bibliography %%%%%%
\bibliographystyle{plainnat}
%%%%%%%%%%%%%%%%%


%%%%%% Something something might be important  %%%%%%%%%
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{2}
\linespread{1}
%%%%%%%%%%%%%%%%%%%%

%%%%%%%%% Depracted %%%%%%%%%%%
%\setlength{\marginparwidth}{10pt}
%\setlength{\textwidth}{400pt}
%\setlength{\textheight}{620pt}
%\setlength{\voffset}{0pt}
%\setlength{\hoffset}{0pt}
%\setlength{\topmargin}{0pt}
%\setlength{\headsep}{10pt}
%\setlength{\oddsidemargin}{50pt}
%\setlength{\evensidemargin}{10pt}
%%%%%%%%%%%%%%%%%%%%



%%%%%%%%%%%%  COMMANDS   %%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%% Get commands defined Elsewhere %%%%%%%%%
%\input{functions/caseControl}
\input{functions/myDate}
\input{functions/wordlist}
%\input{extra}
%%%%%%%%%%%%%%%%%%%%

%%%%  Makes the titles look nicer. i guess. Rasmus out. %%%%%%% Don't remove
%\usepackage{titlesec} \newcommand{\bigrule}{\titlerule[0.5mm]} \titleformat{\chapter}[display] {\bfseries\Huge} {  \vskip-2em 
 %\titlerule 
% \filright  \huge\chaptertitlename\ \vspace{5mm}  \huge\thechapter} {0mm} {\filright} [\vspace{3mm} \bigrule \vspace{-10mm}] %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%% Depracted %%%%%%%%%
\newcommand{\picturepath}[1]{input/pics/}


%%%%% Used to determine the highlight of the first word in the terminology %%%%%
\newcommand{\myTermHigh}[1]{\textbf{#1}: }
%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%% tops 'n' tails %%%%%%%%%%%%
\newcommand{\myTop}[1]{\vspace{-8mm}  \vspace{0mm} \textit{#1} \vspace{2.6mm} \hrule  \vspace{4.2mm} }

%\newcommand{\myTop}[1]{\vspace{-8mm}  \vspace{0mm} \textit{#1} \vspace{3.4mm} \hrule \vspace{3.4mm} }
%\newcommand{\myTop}[1]{ \vspace{3.4mm} \textit{#1} \  \\  \hrule \  \\}%
\newcommand{\myTail}[1]{ \vspace{3.4mm} \hrule \vspace{3.4mm} \textit{#1} }%

\newcommand{\emptyTop}[0]{\vspace{-6mm}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%% Use this for caption text %%%%%%%%%%
\newcommand{\myCaption}[1]{\textit{\footnotesize #1.}}
\newcommand{\morscaption}[1]{\caption{\myCaption{#1}}}
%\usepackage[bf]{caption}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%% Bruges til skillekolonner og r\ae{}kker . Definerer tykkelsen. %%%%%%
\newcommand{\vrules}{{\vrule width 0.6pt}}
\newcommand{\hrules}{{\hrule height 1.2pt}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%Commands for getting e.g. ``st'' lifted in 1st   %%%%%%%%%%%
\newcommand{\superscript}[1]{\ensuremath{^{\textrm{#1}}}}
\newcommand{\subscript}[1]{\ensuremath{_{\textrm{#1}}}}
\newcommand{\ths}[0]{\superscript{th}}
\newcommand{\st}[0]{\superscript{st}}
\newcommand{\nd}[0]{\superscript{nd}}
\newcommand{\rd}[0]{\superscript{rd}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%% FIXME macro %%%%%%%%%%%%
%\newcommand{\todo}[1]{\fxnote{#1}}
%\newcommand{\todoV}[1]{\fxfatal{#1}}
%\newcommand{\todov}[1]{\fxfatal{#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%% REFERENCES %%%%%%%%%%%%%
\newcommand{\agdref}[2]{#1~\ref{#2}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%% Moves %%%%%%%%%%
\newcommand{\m}[1]{\textbf{#1}}
\newcommand{\vr}[1]{$#1$}
\newcommand{\pcparagraph}[1]{\vspace{-1.5mm}\paragraph{#1}}
%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newcommand{\OK}[0]{\textsc{Ok}}
\newcommand{\Ok}[0]{\textsc{Ok}}
\newcommand{\Undef}[0]{\textsc{Undefined}}
\newcommand{\Wrong}[0]{\textsc{Wrong}}
\newcommand{\Nil}[0]{\textsc{Nil}}
\newcommand{\sensorDist}[0]{15 cm}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% JOURNALS %%
\newcommand{\journalwidth}[0]{\textwidth}


%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%% Class, component ... %%%%%%%%%%%%%%%%%%

\newcommand{\me}[1]{\method{#1}}							%%Don't change
\newcommand{\class}[1]{\textbf{#1}}						%%Do change
\newcommand{\cl}[1]{\class{#1}}								%%Don't change
\newcommand{\aclass}[1]{\textit{\class{#1}}}	%%Do change
\newcommand{\acl}[1]{\aclass{#1}}							%%Don't change
\newcommand{\component}[1]{\textbt{#1}}				%%Do change
\newcommand{\comp}[1]{\component{#1}}					%%Don't change
\newcommand{\vari}[1]{\mbox{\textbf{#1}}}						%%Do change
\newcommand{\method}[1]{\mbox{\texttt{#1}}}						%%Do change
\newcommand{\function}[1]{\method{#1}}				%%Do change
\newcommand{\fu}[1]{\function{#1}}						%%Don't change
\newcommand{\figref}[1]{Figure~\ref{#1}}			%%Do change
\newcommand{\coderef}[1]{Code Snippet~\ref{#1}}	%%Do change
\newcommand{\chapref}[1]{Chapter~\ref{#1}}			%%Do change
\newcommand{\secref}[1]{Section~\ref{#1}}			%%Do change
\newcommand{\appref}[1]{Appendix~\ref{#1}}			%%Do change


\newcommand{\type}[1]{\textbf{#1}} % added by Stubman 110420
\newcommand{\object}[1]{\texttt{#1}} % added by Stubman 110420

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%% Qoutations %%%%%%%%%%%%
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}%
\newcommand{\myQuote}[1]{
\begin{flushleft}
\Huge{\textbf{``}}
\end{flushleft}
\vspace{-30pt}
\begin{quote}
#1
\end{quote}
\vspace{-30pt}
\begin{flushright}
\Huge{\textbf{''}}
\end{flushright}
}


%%%%%%%%% Defining Theorem %%%%%%%%%%%
\theoremstyle{definition} \newtheorem{theorem}{Theorem}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%% Multi Row %%%%%%%%%%%%%%%%%%%
\usepackage{multirow}
%%% This is needed to use the multicolumn command
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hyphenation{help-desk}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Environments for operational semantics
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\envv}{\textit{env}_{v}}
\newcommand{\envf}{\textit{env}_{f}}
\newcommand{\sto}{\textit{sto}}
\newcommand{\ret}{\textit{ret}}
\newcommand{\Void}{\textsc{Void}}
\newcommand{\Int}{\textit{Int}}
\newcommand{\Float}{\textit{Float}}
\newcommand{\Bool}{\textit{Bool}}
\newcommand{\String}{\textit{String}}
\newcommand{\Types}{\textbf{Types}}
\newcommand{\semspace}{\vspace{-6mm}}

%%%%%%%%% List Environments %%%%%%%%%%%
\usepackage{listings}


\usepackage{color}

\definecolor{light-gray}{gray}{0.80}
\definecolor{gray95}{gray}{.95}
\definecolor{gray92}{gray}{.92}
\definecolor{gray75}{gray}{.75}
\definecolor{gray45}{gray}{.45}

\lstdefinestyle{arongadongkCode}
{ 
	%numbers=left,
	numbersep=5pt, 
	stepnumber=1,
	captionpos=b,  %bottom
	keywordstyle=\color[rgb]{0,0,1},
	commentstyle=\color[rgb]{0.133,0.545,0.133},
	stringstyle=\color[rgb]{0.627,0.126,0.941},
	%backgroundcolor=\color{gray95},
	%frame=lrtb,
	framerule=0.5pt,
	linewidth=1.00\textwidth,
	tabsize=4,
	numberbychapter=true,
	basicstyle=\ttfamily\footnotesize,
	breaklines=true,
	showstringspaces=false,
	morecomment=[l]{//},
	morecomment=[s]{/*}{*/},
	emph=[1]{int,string,float,bool},%%%%%%%%%%% Types
	emph=[2]{global,const,if,while,else,return}, %%%%%%%%%%% Keywords
	emphstyle=[1]{\color[rgb]{0,0.7,0.7}},
	emphstyle=[2]{\color[rgb]{0.7,0,1}},
	float=htb,
	breakindent=20pt
}

\lstdefinestyle{sourceCode}
{ 
	numbers=left,
	numbersep=5pt, 
	stepnumber=1,
	captionpos=b,  %bottom
	keywordstyle=\color[rgb]{0,0,1},
	commentstyle=\color[rgb]{0.133,0.545,0.133},
	stringstyle=\color[rgb]{0.627,0.126,0.941},
	%backgroundcolor=\color{gray95},
	%frame=lrtb,
	framerule=0.5pt,
	linewidth=1.00\textwidth,
	tabsize=4,
	numberbychapter=true,
	basicstyle=\ttfamily\footnotesize,
	language=C,
	breaklines=true,
	showstringspaces=false,
	emph=[1]{endregion,region,get,set,enum},%%%%%%%%%%% Add new keywords here
	%emph=[2]{Tag,Problem,Person,List,NotSupportedException,TestMethod,ProblemSearch,Assert,
	%EntityCollection,Department,IEnumerable,TimeSpan,DateTime},%%Classes
	emphstyle=[1]{\color[rgb]{0,0,1}},
	emphstyle=[1]{\color[rgb]{0,0,1}},
	emphstyle=[2]{\color[rgb]{0.1,0.5,0.5}},
	float=htb,
	breakindent=20pt
}
\lstdefinestyle{phpCode}
{ 
	numbers=left,
	numbersep=5pt, 
	stepnumber=1,
	captionpos=b,  %bottom
	keywordstyle=\color[rgb]{0,0,1},
	commentstyle=\color[rgb]{0.133,0.545,0.133},
	stringstyle=\color[rgb]{0.627,0.126,0.941},
	%backgroundcolor=\color{gray95},
	%frame=lrtb,
	framerule=0.5pt,
	linewidth=1.00\textwidth,
	tabsize=4,
	numberbychapter=true,
	basicstyle=\ttfamily\footnotesize,
	language=PHP,
	breaklines=true,
	showstringspaces=false,
	emph=[1]{endregion,region,get,set,enum},%%%%%%%%%%% Add new keywords here
	%emph=[2]{Tag,Problem,Person,List,NotSupportedException,TestMethod,ProblemSearch,Assert,
	%EntityCollection,Department,IEnumerable,TimeSpan,DateTime},%%Classes
	emphstyle=[1]{\color[rgb]{0,0,1}},
	emphstyle=[1]{\color[rgb]{0,0,1}},
	emphstyle=[2]{\color[rgb]{0.1,0.5,0.5}},
	float=htb,
	breakindent=20pt
}

\lstdefinestyle{oilCode}
{ 
	%numbers=left,
	numbersep=5pt, 
	stepnumber=1,
	captionpos=b,  %bottom
	keywordstyle=\color[rgb]{0,0,1},
	commentstyle=\color[rgb]{0.133,0.545,0.133},
	stringstyle=\color[rgb]{0.627,0.126,0.941},
	%backgroundcolor=\color{gray95},
	%frame=lrtb,
	framerule=0.5pt,
	linewidth=1.00\textwidth,
	tabsize=4,
	numberbychapter=true,
	basicstyle=\ttfamily\footnotesize,
	language=C,
	breaklines=true,
	showstringspaces=false,
	emph=[1]{Task},%%%%%%%%%%% Add new keywords here
	%emph=[2]{Tag,Problem,Person,List,NotSupportedException,TestMethod,ProblemSearch,Assert,
	%EntityCollection,Department,IEnumerable,TimeSpan,DateTime},%%Classes
	emphstyle=[1]{\color[rgb]{0,0,1}},
	emphstyle=[1]{\color[rgb]{0,0,1}},
	emphstyle=[2]{\color[rgb]{0.1,0.5,0.5}},
	breakindent=20pt
}

\lstdefinestyle{cpp}
{ 
	%numbers=left,
	numbersep=5pt, 
	stepnumber=1,
	captionpos=b,  %bottom
	keywordstyle=\color[rgb]{0,0,1},
	commentstyle=\color[rgb]{0.133,0.545,0.133},
	stringstyle=\color[rgb]{0.627,0.126,0.941},
	%backgroundcolor=\color{gray95},
	%frame=lrtb,
	framerule=0.5pt,
	linewidth=1.00\textwidth,
	tabsize=4,
	numberbychapter=true,
	basicstyle=\ttfamily\footnotesize,
	language=C,
	breaklines=true,
	showstringspaces=false,
	emph=[1]{Task},%%%%%%%%%%% Add new keywords here
	%emph=[2]{Tag,Problem,Person,List,NotSupportedException,TestMethod,ProblemSearch,Assert,
	%EntityCollection,Department,IEnumerable,TimeSpan,DateTime},%%Classes
	emphstyle=[1]{\color[rgb]{0,0,1}},
	emphstyle=[1]{\color[rgb]{0,0,1}},
	emphstyle=[2]{\color[rgb]{0.1,0.5,0.5}},
	breakindent=20pt
}


%\renewcommand{\follower}{Ju{}dge John{}son}%Asure uncorrect noname :P Bondo you DAAUGH
\renewcommand{\lstlistingname}{Code Snippet}%%Changing the caption to read ``Code snippet''
\renewcommand{\lstlistlistingname}{List of Code Snippets}
\lstset{escapeinside={(*}{*)}}%%Defines the escape and unescape chars

%%%%%%%%%% To use with copy-paste:
\begin{comment}

\begin{lstlisting}[style=cpp, caption=\myCaption{<some caption>}, label=<some label>]
<the code>
	<more code, now with indent>
\end{lstlisting}

\end{comment}
%%%%%%%%%% To input file:
\begin{comment}

\lstinputlisting[style=sourceCode, caption=\myCaption{<some caption>}, label=<some label>]{<file name>}

\end{comment}


\newcommand{\moodlefile}[1]{#1}
%\newcommand{\sharedReport}[0]{../../sw6-mymoodle-group/shared_report/}
%\input{\sharedReport preamble}